package org.jwd.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author vizz
 * @since 2022/5/14 15:47
 */
@Data
public class BaseEntity implements Serializable {

	//这里不能定义serialVersionUID，不会继承下去

	@TableId(type = IdType.AUTO)
	private Long id;

	private LocalDateTime created;
	private LocalDateTime updated;

	@TableLogic
	private Integer deleted;
}
